import { NgModule } from '@angular/core';

import { MatDialogModule } from '@angular/material'

import { ProjectRoutingModule } from "./project-routing.module";
import { SharedModule } from "../shared/shared.module";


import { ProjectListComponent } from './project-list/project-list.component';
import { ProjectItemComponent } from './project-item/project-item.component';
import { NewProjectComponent } from './new-project/new-project.component';
import { InviteProjectComponent } from './invite-project/invite-project.component';


@NgModule({
  imports: [
    SharedModule,
    MatDialogModule,
    ProjectRoutingModule
  ],
  declarations: [
    ProjectListComponent,
    ProjectItemComponent,
    NewProjectComponent,
    InviteProjectComponent
    ],
  // entryComponents: 数组类型的选项,指定一系列的组件,这些组件将会在这个模块定义的时候进行编译
  // Angular会为每一个组件创建一个ComponentFactory然后把它存储在ComponentFactoryResolver
  entryComponents:[
    NewProjectComponent,
    InviteProjectComponent
  ]
})
export class ProjectModule { }
